package com.myway.components.jms.artifact;

import java.util.Date;

import com.myway.core.jms.artifact.JobArtifact;
//import com.euair.orm.Passenger;


public class ADLJobArtifact extends JobArtifact {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	// Flight number
	private String flightNo;
	// Departure date, time is doesn't matter
	private Date deptDate;
	// Departure airport
	private String deptPort;
	// Arrival airport
	private String arrvPort;
	
	
//	private List<Passenger> pax=new ArrayList<Passenger>();
	
	private boolean addPassenger=true;
	
	
	
	public ADLJobArtifact(String operation, String messageType, String airline) {
		super(operation, messageType, airline);
	}
	
	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	public Date getDeptDate() {
		return deptDate;
	}

	public void setDeptDate(Date deptDate) {
		this.deptDate = deptDate;
	}

	public String getDeptPort() {
		return deptPort;
	}

	public void setDeptPort(String deptPort) {
		this.deptPort = deptPort;
	}

	public String getArrvPort() {
		return arrvPort;
	}

	public void setArrvPort(String arrvPort) {
		this.arrvPort = arrvPort;
	}
	
	


//	public List<Passenger> getPax() {
//		return pax;
//	}
//
//	public void setPax(List<Passenger> pax) {
//		this.pax = pax;
//	}
	
	


	public boolean isAddPassenger() {
		return addPassenger;
	}

	public void setAddPassenger(boolean addPassenger) {
		this.addPassenger = addPassenger;
	}

	@Override
	public String toString() {
		StringBuffer s=new StringBuffer();
		s.append("ADL Job Artifact: " + flightNo + " " + deptDate + " " + deptPort + "-" + arrvPort);
		return s.toString();
	}	
}
